package cn.tedu.straw.api.mapper;

import cn.tedu.straw.commons.model.Answer;
import cn.tedu.straw.commons.vo.AnswerVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author tedu.cn
 * @since 2020-08-11
 */
@Repository
public interface AnswerMapper extends BaseMapper<Answer> {
    /**
     * 查询某问题的答案回答
     *
     * @param questionId 问题ID
     * @return 该问题的回答列表
     */
    List<AnswerVO> findByQuestionId(Integer questionId);

}
